
class Files(object):
    """
    Classe contennant un dictionnaire des fichiers retrouves, qui sert a associer aux
    fichiers leur id:
    
        {f0:[id,{ws},c], ..., fn:[id,{ws},c]}
    """
    def __init__(self):
        self.idFile = 0;
        self.bag = {}

    def add(self, file, words, category):
        self.bag[file] = [self.idFile, words, category] 
        self.idFile = self.idFile + 1